const { app, BrowserWindow} = require('electron');

const createWin = () => {
    new BrowserWindow({
        width: 1000, 
        height: 700,
    }).loadFile("./index.html");
};

app.whenReady().then(() => {
    createWin();
    app.on('activate', function () {
        if (BrowserWindow.getAllWindows().length === 0) createWin();
    });
});

app.on('window-all-closed', function () {
    if (process.platform !== 'darwin') app.quit()
});